package com.wit.witmg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author bob
 * @since 2025-02-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TOrder对象", description="订单表")
public class TOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    @ApiModelProperty(value = "状态（0-未报价,1-已报价,2-已签约,3-已发货,4-已开票,5-已结款,6-已完成）")
    private Integer stat;

    @ApiModelProperty(value = "价格类型[0含税含运费、1含税不含运费、2不含税含运费、4不含税不含运费]")
    private Integer pricetp;

    @ApiModelProperty(value = "付款方式")
    private String paymeth;

    @ApiModelProperty(value = "优惠幅度")
    private Double pr;

    @ApiModelProperty(value = "金额总计")
    private Double amount;

    @ApiModelProperty(value = "已收金额")
    private Double amti;

    @ApiModelProperty(value = "已出库金额")
    private Double amto;

    @ApiModelProperty(value = "已付运杂费")
    private Double fee;

    @ApiModelProperty(value = "客户名称")
    private String cna;

    @ApiModelProperty(value = "客户编号，用于模糊查询")
    private String cbn;

    @ApiModelProperty(value = "送货地址")
    private String addr;

    @ApiModelProperty(value = "询价日期")
    private Date date;

    @ApiModelProperty(value = "签约日期")
    private Date rdate;

    @ApiModelProperty(value = "需求日期")
    private Date ndate;

    @ApiModelProperty(value = "归属部门id")
    private Integer oid;

    @ApiModelProperty(value = "录入人guid")
    private Long guid;

    @ApiModelProperty(value = "订单的备注")
    private String remark;

    private Double weight;//净重
    private String belong;//归属部门

    private transient List<TOrderp> prod;//订单分解list

}
